package com.dmbjz.demo.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
//指定和配置文件的哪个前缀进行绑定
@ConfigurationProperties(prefix = "teacher")
public class TeacherConfig {

    private Long id;
    private String name;
    private Integer age;

}
